package com.billing.model.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.billing.model.entity.TDept;

public interface DeptBeanMapper {

	/**
	 * 获取部门信息
	 * @return
	 */
	public List<TDept> getTDeptlist();

	public int getDeptNum(@Param("id")int id, @Param("name")String name, @Param("status")int status);

	public List<Map<String, Object>> getDeptById(@Param("id")int id, @Param("name")String name, @Param("status")int status, @Param("pageSize")int pageSize, 
			@Param("currentPage")int currentPage);

	public int insert(TDept dept);
	/**
	 * 查询当前公司所有的部门
	 * @param id
	 * @return
	 */
	public List<TDept> getAllDept(String id);
}
